﻿using System;
using System.Windows;
using System.Windows.Controls;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;
using Person.View;

namespace HumanResource.View
{
    /// <summary>
    /// Interaction logic for HumanResourceView.xaml
    /// </summary>
    public partial class HumanResourceView : UserControl
    {
        private readonly IUnityContainer container;
        private readonly IRegionManager rManager;


        public HumanResourceView(IUnityContainer c, IRegionManager r)
        {
            InitializeComponent();

            container = c;
            rManager = r;
        }

        private void NavigateRadioButton2_Click(object sender, RoutedEventArgs e)
        {
            Uri viewNav = new Uri("PersonView", UriKind.Relative);
            rManager.RequestNavigate(RegionNames.MainContentRegion, viewNav);
        }
    }
}
